<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>Waiting...</title>
</head>

<body>
  <script src="oidc-client.min.js"></script>
  <script>
    var mgr = new Oidc.UserManager({ userStore: new Oidc.WebStorageStateStore(), loadUserInfo: true, filterProtocolClaims: true, response_mode: "query" });

    mgr.signinRedirectCallback().then(function (user) {
      window.location = '/console.html';
    }).catch(function (err) {
      window.location = '/';
    });

  </script>
</body>

</html>